package com.hehua.FactoryMethodThree;

/**
 * @author hehua
 * @Date 2022-04-17
 * 抽象工厂类
 * 通过使用抽象类隐藏客户端工厂创建方法
 */
public abstract class LoggerFactory {

    public void writeLogger(){
        Logger logger = this.createLogger();
        logger.writeLogger();
    }
    public abstract Logger createLogger();
}
